var e = require;
var t = module;
var n = exports;
Object.defineProperty(n, "__esModule", {
    value: !0
});
var o = e("NativeAdBase"),
i = cc._decorator,
a = i.ccclass,
r = i.property,
s = function(e) {
    __extends(t, e);
    function t() {
        var t = null !== e && e.apply(this, arguments) || this;
        t.autoShow = !0;
        t.autoFresh = !0;
        t.delay = 0;
        t.adNode = null;
        t.title = null;
        t.desc = null;
        t.iconSprite = null;
        t.mainSprite = null;
        t.nativeItem = null;
        t.closeBtn = null;
        t.extentBtns = [];
        t.showState = 0;
        return t
    }
    t.prototype.onEnable = function() {};
    t.prototype.onDisable = function() {};
    t.prototype.onFresh = function() {};
    t.prototype.onGetAD = function() {};
    t.prototype.canShow = function() {
        return ! 1
    };
    t.prototype.show = function() {};
    t.prototype.click = function() {
        if (this.nativeItem) {
            this.close();
            SDK.Mgr.Inst.getAds().clickNative();
            this.nativeItem.click()
        }
    };
    t.prototype.close = function() {
        this.adNode && (this.adNode.active = !1);
        this.closeBtn && (this.closeBtn.active = !1);
        this.extentBtns.forEach(function(e) {
            e.active = !1
        })
    };
    __decorate([r(cc.Boolean)], t.prototype, "autoShow", void 0);
    __decorate([r(cc.Boolean)], t.prototype, "autoFresh", void 0);
    __decorate([r(cc.Float)], t.prototype, "delay", void 0);
    __decorate([r(cc.Node)], t.prototype, "adNode", void 0);
    __decorate([r(cc.Label)], t.prototype, "title", void 0);
    __decorate([r(cc.Label)], t.prototype, "desc", void 0);
    __decorate([r(cc.Sprite)], t.prototype, "iconSprite", void 0);
    __decorate([r(cc.Sprite)], t.prototype, "mainSprite", void 0);
    __decorate([r(cc.Node)], t.prototype, "closeBtn", void 0);
    __decorate([r([cc.Node])], t.prototype, "extentBtns", void 0);
    return __decorate([a], t)
} (o.default);
n.default = s